// 商城相关api
// 获取分类
async function categoryList(data) {
	const res = await uni.$request.post('/productApi/categoryList', data);
	// console.log('categoryList res: ',res);
	return res || []
}
// 门店商品
async function queryProductList(data) {
	return await uni.$request.post('/productApi/queryProductList', data);
	// console.log('queryProductList res: ',res);
	// return res
}
// 商品详情
async function productDetial(goodsId) {
	return await uni.$request.get('/productApi/productDetial/'+goodsId);
}
export {
	categoryList,
	queryProductList,
	productDetial
};